const mongoose = require('mongoose');

let facSchema = new mongoose.Schema({
    films: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'filmsModel'
    },
    cinemas: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'cinemasModel'
    },
    schedule: Array
})

module.exports = mongoose.model('facModel', facSchema, 'filmAndCinemas');